<template>
  <menuComp :menu="menu"></menuComp>
</template>
<script setup lang="ts">
import menuComp from '../components/menuComp.vue'

async function handleFullScreen() {
  window.electron.ipcRenderer.send('fullScreen')
}

const menu = {
  label: '视图',
  children: [{ label: '全屏', click: handleFullScreen }]
}
</script>
<style lang="scss" scoped></style>
